|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
opencard.opt.iso.fs.CardFileOutputStream
CardFileInputStream together with the accompanying CardFileOutputStream provides access to a CardFile via the familiar Java input/output stream mechanism.
CardFile,
CardFileInputStream,
InputStream| Constructor Summary | |
CardFileOutputStream(CardFile file)
Instantiate an OuputStream for the specified CardFile object. |
|
| Method Summary | |
void |
close()
Closes the output stream. |
protected void |
finalize()
Make sure that the output stream is closed on garbage collection. |
void |
flush()
Flushes this CardFileOutputStream and forces any buffered output bytes to be written out. |
void |
write(byte[] b)
Write an array of bytes. |
void |
write(byte[] b,
int offset,
int length)
Write a slice of a byte array. |
void |
write(int b)
Write a byte of data. |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CardFileOutputStream(CardFile file)
throws java.io.IOException,
CardIOException,
CardTerminalException
file - The file to instantiate the OutputStream for.
java.io.IOException - Thrown if the file is not found.
CardTerminalException - Thrown when the smart card has been removed.
CardIOException| Method Detail |
public void close()
throws java.io.IOException,
CardTerminalException
java.io.IOException - If an I/O error has occurred.
CardTerminalException - Thrown when the smart card has been removed.
public void flush()
throws java.io.IOException,
CardTerminalException
CardTerminalException - Thrown when the smart card has been removed.
java.io.IOException - if an I/O error occurs.
public void write(int b)
throws java.io.IOException,
CardTerminalException
b - The byte to be written
java.io.IOException - Thrown if an I/O error has occured.
CardTerminalException - Thrown when the smart card has been removed.
public void write(byte[] b)
throws java.io.IOException,
CardTerminalException
b - The data to be written
java.io.IOException - Thrown if an I/O error has occured.
CardTerminalException - Thrown when the smart card has been removed.
public void write(byte[] b,
int offset,
int length)
throws java.io.IOException,
CardTerminalException
b - The data to be writtenoffset - The start offset in the data (not in the file!)length - The number of bytes that are written
java.io.IOException - Thrown if an I/O error has occured.
CardTerminalException - Thrown when the smart card has been removed.
protected void finalize()
throws java.io.IOException
java.io.IOException - Thrown when an I/O error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||